package com.atghost.minio.constant;

/**
 * @author Admin
 * @version 1.0
 * @date 2024-5-12 21:55
 **/
public class FileStorageUtils {
    public static String sha256ToFileKey(String sha256) {
        sha256 = sha256.toLowerCase();
        String fileKey = String.format("sha-256/%s/%s/%s/%s", sha256.substring(0, 2), sha256.substring(2, 4),
                sha256.substring(4, 6), sha256);
        return fileKey;
    }
}
